﻿namespace WebService {

    public class Functions {

        public static decimal CalcProfit(decimal price, decimal cost, decimal postage) {
            return price - (decimal) (Settings.RealRate * (double) (cost + postage));
        }

        public static decimal CalcProfit(decimal price, decimal cost, decimal postage, double rate) {
            return price - (decimal)(Settings.RealRate * (double)( cost + postage ));
        }
    }
}